import {Component, Input, OnInit} from '@angular/core';
import {FormField} from '../../../pages/dynamic-form/model/FormField';

@Component({
  selector: 'app-flexible-form-edit',
  templateUrl: './flexible-form-edit.component.html',
  styleUrls: ['./flexible-form-edit.component.css']
})
export class FlexibleFormEditComponent implements OnInit {

  @Input() formJson;
  formFields: FormField[];

  constructor() {
  }

  ngOnInit(): void {
    this.formFields = JSON.parse(this.formJson);
  }

}
